<template>
  <div class="about">
    <el-row>
      <el-button>默认按钮</el-button>
      <el-button type="primary">主要按钮</el-button>
      <el-button type="success">成功按钮</el-button>
      <el-button type="info">信息按钮</el-button>
      <el-button type="warning">警告按钮</el-button>
      <el-button type="danger">危险按钮</el-button>
    </el-row>
    <hr>
    <el-button @click="toLogin" type="success">登录</el-button>
  </div>
</template>
<script>
export default {
  data() {
    return {
      loginUrl: ''
    }
  },
  methods:{
    toLogin(){
      this.axios.get("http://192.168.21.1/api/user/getLoginUrl").then(resp=>{
        this.loginUrl=resp.data;
        window.open(resp.data);
      })


    }
  }
}
</script>